/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,Navigator
} from 'react-native';
import {
    Router
} from 'react-native-router-flux';
import scenes from './route';

export default class ReactNativeCheck extends Component {
  render() {
    return (
        //Navigator跳转
        // <Navigator
        //     initialRoute={{name:'启动页',component:Login}}
        //     configureScene={()=>{
        //       return Navigator.SceneConfigs.PushFromRight;
        //     }}
        //     renderScene={(route,navigator)=>{
        //       let Component = route.component;
        //       return <Component {...route.params} navigator={navigator}/>;
        //     }}
        // />
        //react-native-router-flux跳转
        //splash界面
        // <Scene key="splash" component={Splash} initial />
        <Router scenes={scenes}/>
    );
  }
}

AppRegistry.registerComponent('ReactNativeCheck', () => ReactNativeCheck);
